From: Ryan Pavlik Date: Thu, 12 May 2022 21:48:46 +0000 (-0500) Subject: Use Unifont from system X-Git-Tag: archive/raspbian/3.2+dfsg-2+rpi1^2~3 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success//%22http:/www.example.com/cgi/success/?a=commitdiff_plain;h=29ac5b5d4cca00dc508ff42c91880ef666012532;p=solvespace.git Use Unifont from system Forwarded: not-needed Gbp-Pq: Name 04_use_system_unifont.patch --- diff --git a/res/CMakeLists.txt b/res/CMakeLists.txt index 30b577c..19650cb 100644 --- a/res/CMakeLists.txt +++ b/res/CMakeLists.txt @@ -288,7 +288,6 @@ add_resources( locales/ru_RU.po locales/zh_CN.po locales/ja_JP.po - fonts/unifont.hex.gz fonts/private/0-check-false.png fonts/private/1-check-true.png fonts/private/2-radio-false.png diff --git a/src/resource.cpp b/src/resource.cpp index 8921d7a..497ef38 100644 --- a/src/resource.cpp +++ b/src/resource.cpp @@ -669,7 +669,7 @@ size_t BitmapFont::GetWidth(const std::string &str) { } BitmapFont BitmapFont::Create() { - BitmapFont Font = BitmapFont::From(LoadStringFromGzip("fonts/unifont.hex.gz")); + BitmapFont Font = BitmapFont::From(LoadString("fonts/unifont.hex")); // Unifont doesn't have a glyph for U+0020. Font.AddGlyph(0x0020, Pixmap::Create(Pixmap::Format::RGB, 8, 16)); Font.AddGlyph(0xE000, LoadPng("fonts/private/0-check-false.png"));